/**
 * Created by Eoly on 2017/5/2.
 * Call http://palerock.cn
 */
// 过滤器
define(['app'], function (app) {
    app.filter('percentage', function () {
        return function (e) {
            if (typeof e == 'number') {
                return (e * 100).toFixed(0) + "%"
            }
            return e;
        }
    });
    app.filter('invokeObjectMethod', function () {
        return function (aimObject, methodName, setting) {
            return aimObject[methodName].apply(aimObject, setting);
        }
    });
    app.filter('escape', function () {
        return function (value) {
            return escape(value)
        }
    })
});
